package com.ea.admin.schedule;

import com.ea.admin.service.RestartService;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@EnableScheduling
public class RestartAllTask {
    @Resource
    RestartService restartService;

    // 每天凌晨3点重启
    //@Scheduled(cron = "0 0 3 * * *")
//    public void restartAll() {
//        restartService.restartAll();
//    }
}
